

<template>
    <div id="home">
        <router-view v-if="isLogined"></router-view>
    </div>
</template>

<script >
import { ref,provide,nextTick } from 'vue';
export default {
    setup(){
        let isLogined = ref(true);
        function update(){
            isLogined.value = false;
            nextTick(()=>{
                isLogined.value = true;
            })

        }
        provide('isLogined',update)
        return{
            isLogined
        }
    }
}


</script>
<style lang="scss">

@import url('./assets/font/font.css');
#app{
    padding: 0;
    margin: 0;
}
.home{
    padding: 0;
    margin: 0;
}
</style>
